<?php
namespace app\backend\models;

use app\backend\lib\ArDBLib;

class UserModel extends ArDBLib{

    public static function tableName(){
        return '@user';
    }

    /**
     * 获取文章
     * @param array $where
     * @return array
     */
    public function getUser($where=[],$orderBy=''){
        return self::find()->where($where)->orderBy($orderBy)->all();
    }

}